﻿namespace jQube.Web.UI.Controls
{
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.ComponentModel;

    [PersistChildren(true)]
    [ParseChildren(true)]
    public class ModalPopupContenPanel : Panel, INamingContainer
    {
        internal ModalPopupContenPanel()
            : base()
        {
            this.CssClass = "jqube-modalpopup-popup-content";
        }

        internal ModalPopupContenPanel(ModalPopup owner)
            : this()
        {
            this.ModalPopup = owner;
        }

        internal ModalPopup ModalPopup { get; set; }

        [DefaultValue("jqube-modalpopup-popup-content")]
        public override string CssClass
        {
            get
            {
                return base.CssClass;
            }
            set
            {
                base.CssClass = value;
            }
        }
    }
}
